package com.wx.spider.sql.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wx.spider.common.pojo.db.User;
import com.wx.spider.sql.mapper.UserMapper;
import com.wx.spider.sql.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:feng
 * @create:2021-04-19 10:52
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getALlUser() {
        List<User> list = userMapper.findAll();
        return list;
    }

    @Override
    public List<User> getALlUser2() {
        List<User> list = userMapper.findAll2();
        return list;
    }
}
